import { request } from "../utils/request";
import { AddComment } from "../types/comment";
// 获取商品列表
export const getGoodsList = (params: any) => {
  return request({ url: "/api/products/list", data: params, method: 'GET' });

}
// 获取商品详情
export const getGoodsDetail = (params: any) => {
  return request({ url: "/api/products/detail", data: params, method: 'POST' });

}
// 问题反馈
export const postFeedback = (params: any) => {
  return request({ url: "/api/question/add", data: params, method: 'POST' });
}
// 获取问题反馈列表
export const getFeedbackList = (params: any) => {
  return request({ url: "/api/question/list", data: params, method: 'GET' });
}
// 提交评论
export const postComment = (params: AddComment) => {
  return request({ url: "/api/review/add", data: params, method: 'POST' });
}